package com.wanmait.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 访客表
 */
@Data
@Accessors(chain = true)
@TableName(value = "visitor")
public class Visitor {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private Boolean gender;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 用户(业主)id
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 房间id
     */
    @TableField(value = "room_id")
    private Integer roomId;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 是否确认，1确认0没有
     */
    @TableField(value = "`check`")
    private Boolean check;

    /**
     * 创建用户id
     */
    @TableField(value = "creat_by")
    private Integer creatBy;

    /**
     * 创建时间
     */
    @TableField(value = "creat_time")
    private Date creatTime;

    /**
     * 更新用户id
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 是否离开，0没有1走了
     */
    @TableField(value = "`leave`")
    private Boolean leave;

    /**
     * 逻辑删除
     */
    @TableField(value = "`enable`")
    private Boolean enable;
}